<style lang="less" scoped>
@primary-color:#FE9333;//橘黄色默认颜色
@write-color:#fff;//白色默认颜色
.newTex{
    margin-top: 20px;
    .title{
        font-size: 14px;
        color: #686E71;
        margin-bottom: 10px;
        .delimgSpan{
            float: right;
            cursor: pointer;
            line-height: 20px;
            img{
                width: 20px;
                height: 20px;
                vertical-align: bottom;
                margin-right: 3px;
            }
        }
    }
    input{
        width: 300px;
        height: 36px;
        border: 1px solid #E3E8EA;
    }
}
</style>
<template>
	<div v-show="textflag">
        <div v-for="(item,index) in textflag" class="newTex">
            <div class="title"><span>文本{{index+1}}</span>
            <!-- <span @click="del(index)">删除</span> -->
            <span class="delimgSpan" @click="del(index)"><img src="../images/leftside_delete.png"/>删除</span>
            </div>
            <Input type="text" v-model="item.content" :maxlength="800" />
        </div>        
    </div>
</template>
<script>
    export default {
		data() {
				return {

				}
			},
        watch:{
            "textflag":"emittext"
        },
        props:["textflag"],
		methods:{
            del(index){
                this.$emit("deltext",index)
            },
            emittext(){
                this.$emit("emittexton",this.textflag)
            }
		}
    }
</script>